﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Web.Admin.Page_Administrator.List" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Web.UI" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>

<!DOCTYPE html>

<%="<!--[if IE 8]> <html class=\"ie8 no-js\"> <![endif]-->"%>
<%="<!--[if IE 9]> <html class=\"ie9 no-js\"> <![endif]-->"%>
<%="<!--[if !IE]><!-->"%>
<html>
<%="<!--<![endif]-->"%>
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title><%=Evan.Common.CommFun.GetAppSetting("AdminTitle") %> - 后台管理系统</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <!-- #include file="../include/com_res_css.inc" -->
    </head>
    <!-- END HEAD -->

    <body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
        <!-- BEGIN HEADER -->
        
        <!-- #include file="../include/top_bar.inc" -->

        <!-- END HEADER -->
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            <!-- BEGIN SIDEBAR -->
            
            <!-- #include file="../include/left_menu.inc" -->
            
            <!-- END SIDEBAR -->
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                    <!-- BEGIN PAGE HEADER-->
                    <!-- BEGIN THEME PANEL -->
                    <!-- #include file="../include/theme_panel.inc" -->
                    <!-- END THEME PANEL -->
                    <!-- BEGIN PAGE TITLE-->
                    <h3 class="page-title"> 管理员列表
                        <p>
                            <div class="btn-group btn-group-solid page-control">
                                <a class="btn default" href="javascript:AddClick();"><i class="fa fa-plus"></i>&nbsp;&nbsp;&nbsp;<span>增加管理员</span></a>
                                <a class="btn default check-all hide" check="false" rel="check-one" href="javascript:;"><i class="fa fa-check"></i>&nbsp;&nbsp;&nbsp;<span>全选</span></a>                        
                            </div>
                        </p>
                    </h3>
                    <!-- END PAGE TITLE-->
                    <!-- END PAGE HEADER-->
                    <!-- BEGIN PAGE CONTENT-->

                                    <div class="table-scrollable">
                                        <table class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
                                                    <th scope="col" class="manager_tab_center">选择</th>
                                                    <th scope="col">用户名</th>
                                                    <th scope="col">姓名</th>
                                                    <th scope="col">角色</th>
                                                    <th scope="col">电话</th>
                                                    <th scope="col">添加时间</th>
                                                    <th scope="col" class="manager_tab_center">状态</th>
                                                    <th scope="col" class="manager_tab_center">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <% foreach (var item in Lists) { %>

                                                    <tr>
                                                        <td class="manager_tab_check"> 
                                                            <label class="mt-checkbox mt-checkbox-outline">
                                                                <input type="checkbox" class="check-one" id="check-<%=item.Id %>" />
                                                                <span></span>
                                                            </label>
                                                        </td>
                                                        <td><%=item.Name %></td>
                                                        <td><%=item.RealName %></td>
                                                        <td><%=new Evan.DataBase.DbOperat("Roles").GetModel(Convert.ToInt32(item.RoleId)).Title  %></td>
                                                        <td><%=item.Tel %></td>
                                                        <td><%=item.AddTime %></td>
                                                        <td class="manager_tab_center"><% if(item.States==1){ %>正常<%} if(item.States==0){ %><span class="font-red bold">锁定</span><%} %></td>
                                                        <td class="manager_tab_center"><a href="javascript:EditClick(<%=item.Id %>);">修改</a></td>
                                                    </tr>
                                                <%  } %>
                                                
                                               
                                                
                                            </tbody>
                                        </table>
                                    </div>

                    
                    <!-- END PAGE CONTENT-->
                </div>
                <!-- END CONTENT BODY -->
            </div>
            <!-- END CONTENT -->
            
        </div>
        <!-- END CONTAINER -->
        <!-- #include file="../include/footer.inc" -->
   <!-- #include file="../include/com_res_js.inc" -->
    </body>

</html>